/**
 * Created by loso on 2017/3/9.
 */
public class _326_PowerOfThree {

    public boolean isPowerOfThree(int n) {
        return ( n>0 &&  1162261467%n==0);
    }
}
